<div class="content container">
    <!-- container -->
    <table class="table table-bordered collect-table">
        <thead>
            <tr>
                <th>名目</th>
                <th>考试时长</th>
                <th>已提交/已领取</th>
                <th>客观题得分/主观题得分/总分</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <volist name="my_list" id="v">
            <tr>
                <td>{$v.title}</td>
                <td>{$v.time}分钟</td>
                <td>{$v.finish_num}/{$v.total_num}</td>
                <td>
                    <if condition="$v.kg_score neq ''">{$v.kg_score}分/</if>
                    <if condition="$v.zg_score neq ''">{$v.zg_score}分/</if>
                    <if condition="$v.total_score neq ''">{$v.total_score}分</if>
                </td>
                <td>
                    <if condition="$v.status eq 0">
                    <a class="text-primary go_a" href="index.php?g=User&m=Student&a=my_exam&eid={$v.eid}">答卷</a>
                    <elseif condition="$v.status eq 3"/>
                    <a class="text-primary" href="index.php?g=User&m=Teacher&a=ExamMark&exid={$v.id}&eid={$v.eid}&uid={$v.user_id}">查看详情</a>
                    <else/>
                    <a  class="disabled">评卷中，请耐心等待</a>
                    </if>
                </td>
            </tr>
            </volist>
        </tbody>
    </table>
    <!-- container End -->
</div>
</div>
</div>
<i class="goTop"></i>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/zui/1.7.0/js/zui.min.js"></script>
    <script>
        $(".go_a").on("click",function(){
            event.preventDefault();
            var url = $(this).attr("href");
            var myModal = new $.zui.ModalTrigger({
                className: "modal-exam",
                title: "开始考试",
                size: "sm",
                custom: '<p class="text-center"><a class="btn btn-warning" data-dismiss="modal">取消</a><a class="btn btn-success" href="'+url+'">开始</a></p>'
                
            });
            myModal.show();
        })
    </script>